#include <iostream>
#include <vector>

using namespace std;

int main()
{
	int n = 5;
	vector<vector<int> > vec2;
	for(int i = 0; i < n; i++) {
		vector<int> x(i+1, 1);
		vec2.push_back(x);
	}

	for(int i = 0; i < n; i++) {
		for(int j = 0; j < vec2[i].size(); j++) {
			cout << vec2[i][j] << " ";
		}
		cout << "\n";
	}

	return 0;
}